Overview

This notebook explores the variance of traits across different levels of biological organization: within colonies, among colonies, among species, and among genera. There are many possibilities for analyses, so this will probably become a rather long notebook.


Density plots

In this section, the distributions of traits are explored, without regard to environmental conditions. I compare the distribution of each trait within each species, including across all workers within each species and across colony means, across colony standard deviations, and across colony coefficients of variation. Lastly, I compare species-level CVs to colony-level CVs to begin to assess the proportion of variation within each species that is found within each colony.

The questions for this section are:

  • Are there traits (or types of traits) that are more variable than others, on average, across species?
  • Are there species that are more variable than others, on average, across traits?
  • Is there synechdoche? Are individual colonies representative of the species? Or is there measurable variation between colonies?
  • Does variability within colonies seem to differ by species or by trait?

Workers: \(y_{ijs}\)

First, it’s worth just looking at the distribution of traits within each species. We can do this for each trait, ignoring which workers came from which colony, and just look at the distribution of the traits, \(y\).

Relative traits (top row) are remarkably uniform for the Myrmicine species. There are perhaps some slight differences among genera for relative interocular distance, leg length, and pronotal expansion, while Myrmica shows a bit more variation in scape proportion across species. Head shape is a bit more variable among Myrmicine genera, with Tetramorium showing higher values (wider heads). Lasius species are generally more variable, within and among species, though the distributions appear to overlap more for head shape and pronotal expansion, and L. fuliginosus stands out as different in terms of leg length and relative interocular distance.

For many traits, many species separate quite clearly. This is particularly true for the absolute traits (bottom row). For Myrmicine genera, there seems to be a strong effect of genus, while Lasius is rather variable. The distributions across species mostly are not obviously broader or narrower, with the exception of absolute traits in Manica, and again the Formicine genera. Tetramorium immigrans seems to separate from other Tetramorium species based on size, being slightly larger, and Tetramorium impurum separates by color, being slightly lighter. Particularly Myrmica species overlap almost entirely in the size-related traits (head width, head length, and Weber’s length). Lasius species are more distinct, especially L. fuliginosus, which stands out from the rest for essentially all traits including color.

Within genera, Myrmica species are most variable for scape proportion and head shape.

Colony means: \(\bar{y}\)

If we layer on the distribution of the colony means, \(\bar{y}_{js}\), we can see whether the workers are distributed much more broadly than the colony means, which would indicate that most of the variation occurs within colonies, or whether the distribution of colony means mirrors that of the workers, which would indicate that the variation among workers is structured among colonies. The distribution of \(y_{ijs}\) is partially transparent, and the distribution of \(\bar{y}_{js}\) is solid.

For the absolute traits (bottom row), we see that the distributions are almost entirely overlapping. Much of the variation in size and color occurs between colonies. There are many factors that could drive differences among colonies in these traits. For example, different temperatures could lead to faster or slower larval development, or indirectly through productivity and nutritional energy available to larvae. These traits could also vary through the season, with the sampling date interacting with the temperatures. Alternatively, the differences could be genetic, with selective pressure from the differing environments driving differences in mean worker body size, or simply random variation among colonies.

In contrast, most of the relative traits (top row) show markedly narrower distributions of colony means compared to worker traits. This indicates that for traits like pronotal expansion, each colony has workers that are quite variable. This seems to hold across species for these traits, rather than being clustered only within some species. Interocular distance and head shape seem to be somewhat intermediate, with some differences among colony means.

Colony sd: \(log(d)\)

We can also look at the distribution of intra-colony standard deviations for each species and trait. I’m not sure this is very telling, aside from maybe the fact that the distributions are so similar across species for each trait.

Colony CV: \(\frac{d}{\bar{y}}\)

Lastly, we can see the distribution of intra-colony CVs (\(\frac{d_{js}}{\bar{y}_{js}}\)).

We can see that generally the intra-colony CV is somewhere around 0-10%, which seems fairly low.

Questions

To revisit the questions for this section:

  • Are there traits (or types of traits) that are more variable than others, on average, across species?
    • Yes. Absolute traits tend to be more variable, while relative traits are less variable. Worker topology is less pliable than worker scale or color. This is true for all species, based on the coefficients of variation.
  • Are there species that are more variable than others, on average, across traits?
    • Yes. Qualitatively, Lasius species are more variable for size-related traits, as well as relative leg length, head shape, and possibly pronotal expansion. For color, Myrmica species actually have the highest species-level CVs. Lasius and Formica are also maybe more variable for relative traits. However, this is without statistics.
  • Is there synechdoche? Are individual colonies representative of the species? Or is there measurable variation between colonies?
    • Individual colonies seem to be largely representative of the species for many relative traits. Or at least, the colony means cluster more strongly. For absolute traits, the colony means are distributed very similarly to the overall distributions.
  • Does variability within colonies seem to differ by species or by trait?
    • Yes. Species-level CVs are higher for absolute traits, and particularly color, with values as high as 20%. Intra-colony CV is also very low for some relative traits like scape proportion, relative interocular distance, and head shape, but notably higher for color.

Variance partitioning

Here is variance partitioning with VCA::fitVCA() and confidence intervals calculated with VCA::VCAinference().

Overall

Partitioning by genus

Partitioning by species

We can partition the variance for each species separately, comparing the contribution of colonies to intra-specific variance. For absolute traits, there is much more variation among colonies. In many species, the majority of the variance in each absolute trait can be explained by variation among colonies. In contrast, the relative traits tend to be less structured among colonies. That is, the distribution of basic ant shapes is relatively invariant among colonies, while traits like size or color tend to vary much more among colonies. Colonies within species may be larger or darker, but knowing the colony gives less information about the worker topology.

And we can assess this more rigorously with a GLMM, with logit-linked proportion of variance predicted by Relative and random effects for species. Maybe that’s the right way to do it…?

CV_trait.lm <- lmer(
  `CV[%]` ~ 0 + Trait * Effect + (1|SPECIESID), 
  data=filter(VC_traitInSpp, Effect != "Total") %>%
    mutate(Trait=factor(Trait, levels=focus_traits, 
                        labels=unique(paste0(str_sub(Relative, 1, 3), 
                                             ": ", Trait)))))
car::Anova(CV_trait.lm, type="III")
## Registered S3 methods overwritten by 'car':
##   method                          from
##   influence.merMod                lme4
##   cooks.distance.influence.merMod lme4
##   dfbeta.influence.merMod         lme4
##   dfbetas.influence.merMod        lme4
sjPlot::plot_model(CV_trait.lm, type="int", colors=varPart_cols) + coord_flip() 

summary(pairs(emmeans::lsmeans(CV_trait.lm, ~Trait * Effect)), type="response")
CV_Rel.lm <- lmer(
  `CV[%]` ~ 0 + Effect * Relative + (1|SPECIESID), 
  data=filter(VC_traitInSpp, Effect != "Total"))
car::Anova(CV_Rel.lm, type="III")
sjPlot::plot_model(CV_Rel.lm, type="int") + coord_flip() 

summary(pairs(emmeans::lsmeans(CV_Rel.lm, ~Relative * Effect)), type="response")

PCA

Here is some PCA.

Overall

Workers

What traits drive differences among workers? Do they separate into clusters based on taxonomy? Relative traits are shown in red, with absolute traits in blue.

\(\bar{y}\)

Do colony means show a similar pattern as individual workers?

\(log(d)\)

Are colonies of different species more or less variable for particular traits? Or are some species or genera more or less variable overall?

\(log(d)/\bar{y}\)

By genus

## $`1`

## 
## $`2`

## 
## attr(,"class")
## [1] "list"      "ggarrange"

By species

## $`1`

## 
## $`2`

## 
## $`3`

## 
## $`4`

## 
## $`5`

## 
## $`6`

## 
## $`7`

## 
## $`8`

## 
## attr(,"class")
## [1] "list"      "ggarrange"